<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="zh">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.8"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>线程池: test/threads_pool_test.c 文件参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectalign">
   <div id="projectname">线程池<span id="projectnumber">&#160;1.0.0</span>
   </div>
   <div id="projectbrief">多线程并发工具</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.9.8 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search/",'.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">载入中...</div>
<div class="SRStatus" id="Searching">搜索中...</div>
<div class="SRStatus" id="NoMatches">未找到</div>
</div>
</div>
</div>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_13e138d54eb8818da29c3992edef070a.html">test</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#func-members">函数</a>  </div>
  <div class="headertitle"><div class="title">threads_pool_test.c 文件参考</div></div>
</div><!--header-->
<div class="contents">
<div class="textblock"><code>#include &lt;stdio.h&gt;</code><br />
<code>#include &lt;unistd.h&gt;</code><br />
<code>#include &lt;stdlib.h&gt;</code><br />
<code>#include &quot;<a class="el" href="threads__pool_8h_source.html">threads_pool.h</a>&quot;</code><br />
</div><div class="textblock"><div class="dynheader">
threads_pool_test.c 的引用(Include)关系图:</div>
<div class="dyncontent">
<div class="center"><img src="threads__pool__test_8c__incl.png" border="0" usemap="#atest_2threads__pool__test_8c" alt=""/></div>
</div>
</div>
<p><a href="threads__pool__test_8c_source.html">浏览源代码.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="func-members" name="func-members"></a>
函数</h2></td></tr>
<tr class="memitem:aee600ae29bd18cd6e64884b3fbd19067" id="r_aee600ae29bd18cd6e64884b3fbd19067"><td class="memItemLeft" align="right" valign="top">void *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="threads__pool__test_8c.html#aee600ae29bd18cd6e64884b3fbd19067">task_func1</a> (void *arg)</td></tr>
<tr class="separator:aee600ae29bd18cd6e64884b3fbd19067"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aca873bc9977fcb8900d2a29ba589e490" id="r_aca873bc9977fcb8900d2a29ba589e490"><td class="memItemLeft" align="right" valign="top">void *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="threads__pool__test_8c.html#aca873bc9977fcb8900d2a29ba589e490">task_func2</a> (void *arg)</td></tr>
<tr class="separator:aca873bc9977fcb8900d2a29ba589e490"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abf6141efb9688caa169c039f286f297c" id="r_abf6141efb9688caa169c039f286f297c"><td class="memItemLeft" align="right" valign="top">void *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="threads__pool__test_8c.html#abf6141efb9688caa169c039f286f297c">long_task_func</a> (void *arg)</td></tr>
<tr class="separator:abf6141efb9688caa169c039f286f297c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae66f6b31b5ad750f1fe042a706a4e3d4" id="r_ae66f6b31b5ad750f1fe042a706a4e3d4"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="threads__pool__test_8c.html#ae66f6b31b5ad750f1fe042a706a4e3d4">main</a> ()</td></tr>
<tr class="separator:ae66f6b31b5ad750f1fe042a706a4e3d4"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">函数说明</h2>
<a id="abf6141efb9688caa169c039f286f297c" name="abf6141efb9688caa169c039f286f297c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#abf6141efb9688caa169c039f286f297c">&#9670;&#160;</a></span>long_task_func()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void * long_task_func </td>
          <td>(</td>
          <td class="paramtype">void *&#160;</td>
          <td class="paramname"><em>arg</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="threads__pool__test_8c_source.html">threads_pool_test.c</a> 第 <a class="el" href="threads__pool__test_8c_source.html#l00024">24</a> 行定义.</p>

<p class="reference">被这些函数引用 <a class="el" href="threads__pool__test_8c_source.html#l00033">main()</a>.</p>
<div class="dynheader">
这是这个函数的调用关系图:</div>
<div class="dyncontent">
<div class="center"><img src="threads__pool__test_8c_abf6141efb9688caa169c039f286f297c_icgraph.png" border="0" usemap="#athreads__pool__test_8c_abf6141efb9688caa169c039f286f297c_icgraph" alt=""/></div>
</div>

</div>
</div>
<a id="ae66f6b31b5ad750f1fe042a706a4e3d4" name="ae66f6b31b5ad750f1fe042a706a4e3d4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae66f6b31b5ad750f1fe042a706a4e3d4">&#9670;&#160;</a></span>main()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int main </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="threads__pool__test_8c_source.html">threads_pool_test.c</a> 第 <a class="el" href="threads__pool__test_8c_source.html#l00033">33</a> 行定义.</p>

<p class="reference">引用了 <a class="el" href="threads__pool_8h_source.html#l00064">threadsPoolMsg::activeThreadsCot</a>, <a class="el" href="threads__pool_8c_source.html#l00396">addNewTask()</a>, <a class="el" href="threads__pool_8c_source.html#l00456">addThread()</a>, <a class="el" href="threads__pool_8c_source.html#l00556">destroyThreadsPoolMsg()</a>, <a class="el" href="threads__pool_8c_source.html#l00366">getNewThreadsPoolMsg()</a>, <a class="el" href="threads__pool__test_8c_source.html#l00024">long_task_func()</a>, <a class="el" href="threads__pool_8c_source.html#l00486">reduceThread()</a>, <a class="el" href="threads__pool__test_8c_source.html#l00007">task_func1()</a> , 以及 <a class="el" href="threads__pool__test_8c_source.html#l00016">task_func2()</a>.</p>
<div class="dynheader">
函数调用图:</div>
<div class="dyncontent">
<div class="center"><img src="threads__pool__test_8c_ae66f6b31b5ad750f1fe042a706a4e3d4_cgraph.png" border="0" usemap="#athreads__pool__test_8c_ae66f6b31b5ad750f1fe042a706a4e3d4_cgraph" alt=""/></div>
</div>

</div>
</div>
<a id="aee600ae29bd18cd6e64884b3fbd19067" name="aee600ae29bd18cd6e64884b3fbd19067"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aee600ae29bd18cd6e64884b3fbd19067">&#9670;&#160;</a></span>task_func1()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void * task_func1 </td>
          <td>(</td>
          <td class="paramtype">void *&#160;</td>
          <td class="paramname"><em>arg</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="threads__pool__test_8c_source.html">threads_pool_test.c</a> 第 <a class="el" href="threads__pool__test_8c_source.html#l00007">7</a> 行定义.</p>

<p class="reference">被这些函数引用 <a class="el" href="threads__pool__test_8c_source.html#l00033">main()</a>.</p>
<div class="dynheader">
这是这个函数的调用关系图:</div>
<div class="dyncontent">
<div class="center"><img src="threads__pool__test_8c_aee600ae29bd18cd6e64884b3fbd19067_icgraph.png" border="0" usemap="#athreads__pool__test_8c_aee600ae29bd18cd6e64884b3fbd19067_icgraph" alt=""/></div>
</div>

</div>
</div>
<a id="aca873bc9977fcb8900d2a29ba589e490" name="aca873bc9977fcb8900d2a29ba589e490"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aca873bc9977fcb8900d2a29ba589e490">&#9670;&#160;</a></span>task_func2()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void * task_func2 </td>
          <td>(</td>
          <td class="paramtype">void *&#160;</td>
          <td class="paramname"><em>arg</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="threads__pool__test_8c_source.html">threads_pool_test.c</a> 第 <a class="el" href="threads__pool__test_8c_source.html#l00016">16</a> 行定义.</p>

<p class="reference">被这些函数引用 <a class="el" href="threads__pool__test_8c_source.html#l00033">main()</a>.</p>
<div class="dynheader">
这是这个函数的调用关系图:</div>
<div class="dyncontent">
<div class="center"><img src="threads__pool__test_8c_aca873bc9977fcb8900d2a29ba589e490_icgraph.png" border="0" usemap="#athreads__pool__test_8c_aca873bc9977fcb8900d2a29ba589e490_icgraph" alt=""/></div>
</div>

</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
生成于 2025年 九月 13日 星期六 03:23:00 , 为 线程池使用 &#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.8
</small></address>
</body>
</html>
